package com.useeinfo.oa.common.utils.httpJson;

import javax.servlet.http.HttpServletRequest;

/**
 * @author geniusj
 * @email 975473185@qq.com
 * @date 2018/8/20  下午2:01
 */
public interface JudgmentJson {

    String X_REQUESTED_WIDTH = "X-Requested-With";

    String ACCEPT = "Accept";

    String CONTENT_TYPE= "Content-Type";

    String APPLICATION_JSON= "application/json";

    String XML_HTTP_REQUEST = "XMLHttpRequest";

    /**
     * 判断当前方法是否需要返回json
     * @param request 请求
     * @return
     */
    boolean isJson(HttpServletRequest request);
}
